import { useRequest } from "ahooks";

const useTestRequest = ()=>{
    const { loading, run, runAsync } = useRequest(
        async () => {
          return Promise.reject("error");
        },
        {
          manual: true,
        }
      );
      return {loading,run,runAsync}
}

export default useTestRequest